package com.turing.post.tuxedo.util;

import java.io.Serializable;

import org.jdom2.Element;

import com.turing.post.util.PCPSApplicationException;

/**
 * POS对象类
 * 
 * @author yxb
 * 
 */
@SuppressWarnings("serial")
public class PosObj implements Serializable {
	/**
	 * 商户POS号(可选,POS商户必选)
	 */
	public String posNo = "";

	/**
	 * 商户POS流水号(可选, POS商户必选)
	 */
	public String posSeqNo = "";

	/**
	 * 商户POS批次号(可选, POS商户必选)
	 */
	public String posSettBatchNo = "";

	/**
	 * 解析卡对象
	 * 
	 * @param node
	 * @throws Exception
	 */
	public void parsePosObj(Element node) throws PCPSApplicationException {
		posNo = TransXmlHelper.getOptionalString(node,
				TransXmlHelper.XML_NODE_PosNo);
		posSeqNo = TransXmlHelper.getOptionalString(node,
				TransXmlHelper.XML_NODE_PosSeqNo);
		posSettBatchNo = TransXmlHelper.getOptionalString(node,
				TransXmlHelper.XML_NODE_PosSettBatchNo);
	}
}
